//放置实现各个页面功能的函数
function moveEle(ele) {
    document.onmousedown = function (e) {
        let downX, downY;
        downX = e.x;
        downY = e.y;
        this.onmousemove = function (eve) {
            ele.style.left = ele.offsetLeft + (eve.x - downX) + "px";
            ele.style.top = ele.offsetTop + (eve.y - downY) + "px";
            downX = eve.x;
            downY = eve.y;
        }
        this.onmouseup = function () {
            this.onmousemove = null;
        }
    }
}
export {
    moveEle,
}